  /**
   * Generate time : 2016-05-09 9:24:37
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ci.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCITernateInfo 
 * table comment : 三违信息 
 */
public class ZMCITernateInfo extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdName = " ";		/* 矿井名称*/
	private String fdClassifyId = " ";		/* 三违分类*/
	private BigDecimal fdTernateNum = new BigDecimal("0");		/* 三违数*/
	private String fdIiieaglLevel = " ";		/* 违法性质*/
	private String fdDepartmentName = " ";		/* 单位名称*/
	private String fdVirtualDate = " ";		/* 调度日期*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(60);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdClassifyId");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("三违分类");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTernateNum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(10);
	eiColumn.setDescName("三违数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIiieaglLevel");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("违法性质");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentName");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("单位名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCITernateInfo() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdName - 矿井名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 矿井名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	/**
	 * get the fdClassifyId - 三违分类
	 * @return the fdClassifyId
	 */
	public String getFdClassifyId() {
		return this.fdClassifyId;
	}
	
	/**
	 * set the fdClassifyId - 三违分类
	 */
	public void setFdClassifyId(String fdClassifyId) {
		this.fdClassifyId = fdClassifyId;
	}
	/**
	 * get the fdTernateNum - 三违数
	 * @return the fdTernateNum
	 */
	public BigDecimal getFdTernateNum() {
		return this.fdTernateNum;
	}
	
	/**
	 * set the fdTernateNum - 三违数
	 */
	public void setFdTernateNum(BigDecimal fdTernateNum) {
		this.fdTernateNum = fdTernateNum;
	}
	/**
	 * get the fdIiieaglLevel - 违法性质
	 * @return the fdIiieaglLevel
	 */
	public String getFdIiieaglLevel() {
		return this.fdIiieaglLevel;
	}
	
	/**
	 * set the fdIiieaglLevel - 违法性质
	 */
	public void setFdIiieaglLevel(String fdIiieaglLevel) {
		this.fdIiieaglLevel = fdIiieaglLevel;
	}
	/**
	 * get the fdDepartmentName - 单位名称
	 * @return the fdDepartmentName
	 */
	public String getFdDepartmentName() {
		return this.fdDepartmentName;
	}
	
	/**
	 * set the fdDepartmentName - 单位名称
	 */
	public void setFdDepartmentName(String fdDepartmentName) {
		this.fdDepartmentName = fdDepartmentName;
	}
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdClassifyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdClassifyId")), fdClassifyId));
		setFdTernateNum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdTernateNum")), fdTernateNum));
		setFdIiieaglLevel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIiieaglLevel")), fdIiieaglLevel));
		setFdDepartmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentName")), fdDepartmentName));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdClassifyId",StringUtils.toString(fdClassifyId, eiMetadata.getMeta("fdClassifyId")));	
			map.put("fdTernateNum",StringUtils.toString(fdTernateNum, eiMetadata.getMeta("fdTernateNum")));	
			map.put("fdIiieaglLevel",StringUtils.toString(fdIiieaglLevel, eiMetadata.getMeta("fdIiieaglLevel")));	
			map.put("fdDepartmentName",StringUtils.toString(fdDepartmentName, eiMetadata.getMeta("fdDepartmentName")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			
		return map;
	
	}
}